import { defineConfig, presetUno, transformerVariantGroup, transformerDirectives } from 'unocss'

export default defineConfig({

    transformers: [
        transformerVariantGroup(),//前缀组
        transformerDirectives(),//快捷方式和指令
    ],
    shortcuts: [
        // dynamic shortcuts
        [/^btn-(.*)$/, ([, c,d]) => `text-([${d}]) text-${c} py-2 px-4 rounded-lg`],
    ],
    presets: [
        presetUno(),
    ],
    rules: [
        // ['pb-iphone', { 'padding-bottom': 'env( safe-area-inset-bottom)'}],
        // ['bg-theme',{'background':'rgba(24, 120, 241, 1)'}]
    ],
    theme: {

    },

})